<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of db_desain
 *
 * @author user
 */
class Db_desain extends Model{
    //put your code here
    function Db_desain(){
        parent::Model();
    }

    function retr_list_desain(){
        $desain = $this->db->query("SELECT nama,desain.id,kategori,harga_satuan,tipe,jenis
                                    FROM desain,item
                                    WHERE desain.id=item.id");
        $i = 0;
        foreach ($desain->result() as $hasil){
            $res[$i] = $hasil;
            $i++;
        }

        return $res;
    }

}
?>
